package org.adl.registry.types;

/**
 *
 * @author Jacob Marks - Joint ADL Co-Lab
 * @version 1.0
 * @license This software is licensed as open source software pursuant to the terms defined in the Joint ADL Co-Lab Open Source Software License.  Use of any part of this software constitutes acceptance of this license. The Joint ADL Co-Lab open source agreement is available at {@link http://adlregistry.adlnet.gov/source_license.html}.
 */
public class GenericParameter extends RimParameter
{
    public GenericParameter(String iName, String iValue)
    {
        super(iName, iValue);
    }
    
    protected void validate()
    {
        String value = super.getParameterValue();
        
        if ((value == null) || (value.length() == 0))
        {
            super.getValidaionErrors().add("The provided parameter '" + super.getParameterName() + " must have a value.");
        }
    }
}
